package com.lanou.sfu.songforu.utils.utils;

import android.content.Context;
import android.support.design.widget.TabLayout;
import android.util.AttributeSet;

/**
 * Created by dllo on 15/10/23.
 */
public class TabLayoutForScrollView extends TabLayout {
    public TabLayoutForScrollView(Context context) {
        super(context);
    }
    public TabLayoutForScrollView(Context context,AttributeSet attrs){
        super(context, attrs);
    }
    public TabLayoutForScrollView(Context context, AttributeSet attrs, int defStyleAttr){
        super(context, attrs, defStyleAttr);
    }
    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }

}
